﻿<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\TagsCloudWidget;
use frontend\components\RctReplyWidget;

use yii\helpers\HtmlPurifier;
use common\models\Comment;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $searchModel common\models\PostSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

?>
<!DOCTYPE html>
<html lange="ZH">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <meta name="apple-touch-fullscreen" content="yes"> <!--  一会试验下是否有必要存在 -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="format-detection" content="telephone=no">
  <meta http-equiv="x-rim-auto-match" content="none"/>
  <meta name="HandheldFriendly" content="true"/>
  <title>详情</title>
  <link rel="stylesheet" href="css/widget.css">
  <link rel="stylesheet" href="css/index.css">


</head>
<body>
  <div class="wrapper">
    <header class="con_hd">
        <a href="<?= Yii::$app->homeUrl;?>?r=post/index" class="hd-back"></a>
      <h2 class="hd-tit">详情</h2>
    </header>

      <header class="art-title" style="margin-top: 30px">
        <h1><?= Html::encode($model->title);?></h1>
          <p>时间：<?= date('Y-m-d ',$model->update_time). "&nbsp;&nbsp;&nbsp";?> 作者：<?= Html::encode($model->author->nickname);?></p>
      </header>
      <div class="art-con">
          <?= HTMLPurifier::process($model->content)?>
      </div>

  </div>
  <hr />


  <div id="div-emoji">

      <a href="<?=Url::to(['post/message'])?>" target="main">留言</a>
  </div>
    <footer class="footbottom">
     <p>All rights reserved | Design by<a href="http://www.lanrenmb.com/"> blog</a></p>
    </footer>
</body>
</html>